package com.ptu.server;

import com.ptu.dto.AddressDTO;
import com.ptu.dto.AddressUpdateDTO;
import com.ptu.entity.Address;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface AddressServer {
    List<Address> list();

    void add(AddressDTO addressDTO);


    void delete(Integer id);

    void update(AddressUpdateDTO addressUpdateDTO);

    void setDefault(Integer id);

    Address getDefault();

}
